package com.blkbox.dp.responsibilitychain;

import com.blkbox.dp.responsibilitychain.impl.AbstractHandler;
import com.blkbox.dp.responsibilitychain.impl.ConcreteHandler1;
import com.blkbox.dp.responsibilitychain.impl.ConcreteHandler2;
import com.blkbox.dp.responsibilitychain.impl.ConcreteHandlerN;

public class Client {
	public static void main(String[] args) {
		AbstractHandler handler1 = new ConcreteHandler1();  
		AbstractHandler handler2 = new ConcreteHandler2();  
		AbstractHandler handlerN = new ConcreteHandlerN();  
          
        handler1.setHandler(handler2);
        handler2.setHandler(handlerN);
          
        handler1.handlerRequest();  
	          
	}
}
